package com.yy.net.event 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author jj043
	 */
	public class RoomEvent extends Event
	{
		public static const HIDE_ROOM_ELEMENT:String = "HIDE_ROOM_ELEMENT";      //
		//
		public static const ROOM_PING:String = "room_ping";                     //碰事件
		//
		public static const ROOM_GANG:String = "room_gang";                     //杠事件
		//
		public static const ROOM_CHI:String = "room_chi";                       //吃事件
		//
		public static const ROOM_DO_CANCEL:String = "room_do_cancel";           //取消所有碰事件
		//
		public static const ROOM_HU:String = "room_hu";                         //胡牌事件
		
		//参数
		private var _param:Object = null;
		
		/**
		 * 构造
		 * @param type
		 * @param param
		 * @param bubbles
		 * @param cancelable
		 */
		public function RoomEvent(type:String,param:Object=null,bubbles:Boolean=false,cancelable:Boolean=false) 
		{
			_param = param;
			super(type, bubbles, cancelable);
		}
		
		
		/**
		 * 克隆
		 * @return
		 */
		override public function clone():Event
		{
			return new RoomEvent(type,param,bubbles,cancelable);
		}
		
		/**
		 * 转化为文本
		 * @return
		 */
		override public function toString():String
		{
			return formatToString("RoomEvent", "param", "type", "bubbles", "cancelable", "eventPhase");
		}
		
		/**
		* 参数
		*/
		public function get param():Object
		{
			return _param;
		}

	}
	
}